﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="HTComics.Web.User.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="../Css/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(doOnLoad);

        function doOnLoad() {
            $('#MainContent_btnLogin').button();
            $('#MainContent_btnForgetPass').button();
        }

        function valid() {
            if ($('#MainContent_txtLogin').val() == '') {
                alert("Please enter user name");
                $('#MainContent_txtLogin').focus();
                return false;
            }

            if ($('#MainContent_txtPassword').val() == '') {
                alert("Please enter password");
                $('#MainContent_txtPassword').focus();
                return false;
            }
        }
    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Heading" runat="server">
    Login
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    
            <div class="section">
                <span class="header">
                    Login
                </span>

            <div class="content">
                <table align="center" style="border:1px solid #d9d6c4;" cellpadding="5" cellspacing="5" width="360px">
                    <tr>
                        <td class="labelBold">Username</td>
                        <td><asp:TextBox ID="txtLogin" runat="server" CssClass="textfield" MaxLength="50" Width="220px"></asp:TextBox> </td>
                    </tr>
                    <tr>
                        <td class="labelBold">Password</td>
                        <td><asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="textfield" MaxLength="50" Width="220px"></asp:TextBox> </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">&nbsp;</td>
                    </tr>        
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Button ID="btnLogin" runat="server" 
                                Text="Login" onclick="btnLogin_Click" OnClientClick="return valid();"/>
                            
                            <asp:Button ID="btnForgetPass" runat="server" 
                                Text="Forgot Password ?" onclick="btnForgotPass_Click"/>
                        </td>
                    </tr>        
                    <tr>
                        <td colspan="2"  colspan="2" align="center">
                            <asp:Label ID="lblError" runat="server" ForeColor="Red" Visible="false"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            </div>
</asp:Content>
